<script>var ahli_arr = new Array();</script>
<script type="text/javascript">
menuLayers.show = function(id, controller, objid, objname, e) {
    var mnu = document.getElementById? document.getElementById(id): null;
    if (!mnu) return;
    this.activeMenuID = id;
    if ( mnu.onmouseout == null ) mnu.onmouseout = this.mouseoutCheck;
    if ( mnu.onmouseover == null ) mnu.onmouseover = this.clearTimer;
    viewport.getAll();
    rewritePopupContent(controller, objid, objname);

    this.position(mnu,e);
}
</script>

<script>
function confirmAndDelete(url) {
	if (confirm("Adakah Anda Pasti?")) {
		location = url
	}
	
}


function rewritePopupContent(controller, objid, objname) {
    $('popmenu').style.width = 180;
    $('popmenu').innerHTML = "<ul>" + 
					       "<li><a href=\""  + "?act=view_ahli&" + "id=" + objid + "\">&nbsp;&nbsp;Papar Maklumat Ahli</a>" + 

					       "<li><a href=\""  + "?act=edit_ahli&" + "id=" + objid + "\">&nbsp;&nbsp;Edit Maklumat Ahli</a>" + 

<?
if ($_SESSION['ACCESS_LEVEL'] != '5') {
?>
					       "<li><a href=\"javascript: confirmAndDelete('?act=delete_ahli&id=" + objid + "')" + "\">&nbsp;&nbsp;Hapus Rekod Ahli</a>" + 
<? } ?>
					       "<hr size=1><li><a href=\""  + "?act=edit_penyata&" + "id=" + objid + "\">&nbsp;&nbsp;Pembayaran</a>" + 
					       "</ul>"
     
}

function a(id) {
	MM_openBrWindow('/course_implementations/show_timetable2/'+id,'','scrollbars=yes,width=1000,height=600')
}
</script>

<script>
function getAjaxDaerah() {
	//$('item_selection').innerHTML = "<font color=orange>Searching Items...please wait</font>"
	ajax_department_request("ajax.php?act=daerahs_of_negeri", "negeri_id="+$("select_negeri").value)
}

function ajax_department_request(url, data) {
    var myAjax = new Ajax.Request(
        url,
        {method: 'post', parameters: data, onComplete: ajax_department_response}
    );
}

function ajax_department_response(originalRequest) {
	if (originalRequest.responseText != 0) {
		var a = originalRequest.responseText.split("$$")
		var k = new Array(a.length)
		for (i=0; i<k.length; i++) {
			k[i] = a[i].split("=")
		}
		//alert(originalRequest.responseText)
		
		str  = "<select  id=\"select_ppd\" name=\"d\" class=\"px200\" onchange=\"//getAjaxSubItem()\">\n";
		str += "<option value=\"\">--Semua Daerah--</option>\n"
		for (i=0; i<k.length; i++) {
			str += "<option value=\"" + k[i][1] + "\">" + k[i][0] + "</option>\n";
		}
		str += "</select>\n";
		$("select_ppd_span").innerHTML = str;
	}
	else {
		$('select_ppd_span').innerHTML = "<font color=orange>List not found</font>"
	}
}
</script>

        
        <div id="content">
            <div id="content_header" class="size_20" style=" border-bottom-width:medium; border-bottom-style:solid; border-bottom-color:#777777">
            	<img src="images/icn_mytaskTitle.gif" align="absmiddle" width="" height="">Proses Pembayaran Melalui Fail</div>
        	<div id="content_bgblue">
                <div id="content_bgwhite">
        
<div id="kandungan" style="border: 0pt solid silver; width: 100%;">

            <? alert_some_message()?>
            <form name="" action="?act=process_file" enctype="multipart/form-data" method="post"onsubmit="GoSubmit(this);" onreset="">
              <? include "_file_upload.php"; ?>
            </form>
            <? if (count($lines) > 0) {?>
            <font class="NormalTextLeft"></font> <br>
<br>
<div style=" overflow: ;">

<form name="search" action="?act=payment_bulk_do" method="POST" target="" onSubmit="" onReset="">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td><!--a href="export.php?act=search_sek&amp;params=<?php echo $s_params?>"><img src="images/excel.gif"/></a--><?=$str;?></td>
    <td width="40" align="left">&nbsp;</td>
    <td width="60" align="right">&nbsp;</td>
    <td width="40" align="right">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="left">&nbsp;</td>
    <td align="right">&nbsp;</td>
    <td align="right">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
    <tr>
      <td align="right">&nbsp;
          <!--a href="export.php?act=search_sek&amp;params=<?php echo $s_params?>"><img src="images/excel.gif"/></a--></td>
      <td width="40" align="left">&nbsp;</td>
      <td width="60" align="right">&nbsp;</td>
      <td width="40" align="right">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="4" align="center">&nbsp;</td>
      </tr>
  </table>
</form>
</div>

<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td>&nbsp;</td>
    <td width="20" align="left"><a href="?act=list_sek&p=<?=$_REQUEST['p']-1?>"></a></td>
    <td align="right" width="100">&nbsp;</td>
    <td width="20" align="right"><a href="?act=list_sek&p=<?=$_REQUEST['p']+1?>"></a></td>
  </tr>
</table>
<!--/fieldset-->
<? }
else {
	if (isset($res_count)) {
		echo "Tiada hasil carian.";	
	}
}
 // end of search result list?>

</div>
<!--div id="content_footborder" style="width:930px; position:absolute; left:0; background:#ccccff; text-align:center">
  &copy; Kementerian Pelajaran Malaysia, 2010.
 </div-->
</div>
<!-- close content_bgwhite -->
</div>
<!-- close content_bgblue -->
</div>
<!-- close content -->

</div>
<!-- close container_content -->

</div>
<!-- close container -->
</body>

<!-- popup menu initial layer----->
<div id="popmenu" class="menu"></div>
<!-- EOpopup menu initial layer----->
